/**
 * 
 */
package com.rio.dandan.dao.impl;

import com.rio.dandan.dao.DaoSupport;
import com.rio.dandan.dao.UserRequireDao;
import com.rio.dandan.pojo.UserRequire;

/**
 * UserRequireDaoImpl.java
 * 
 * @author 宋陆
 * @version 1.0 2014年6月30日
 */
public class UserRequireDaoImpl extends DaoSupport implements UserRequireDao {

    /**
     * @see com.rio.dandan.dao.UserRequireDao#getUserRequire(java.lang.String)
     */
    @Override
    public UserRequire getUserRequire(String uid) {
        return super.get(UserRequire.class, uid, true);
    }

    /**
     * @see com.rio.dandan.dao.UserRequireDao#saveUserRequire(com.rio.dandan.pojo.UserRequire)
     */
    @Override
    public UserRequire saveUserRequire(UserRequire userRequire) {
        super.save(userRequire);
        return userRequire;
    }

    /**
     * @see com.rio.dandan.dao.UserRequireDao#updateUserRequire(com.rio.dandan.pojo.UserRequire)
     */
    @Override
    public UserRequire updateUserRequire(UserRequire userRequire) {
        super.update(userRequire);
        return userRequire;
    }

    /**
     * @see com.rio.dandan.dao.UserRequireDao#saveOrUpdateUserRequire(com.rio.dandan.pojo.UserRequire)
     */
    @Override
    public UserRequire saveOrUpdateUserRequire(UserRequire userRequire) {
        super.saveOrUpdate(userRequire);
        return userRequire;
    }

}
